﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RealTwitterApp.Master" AutoEventWireup="true" CodeBehind="Amis.aspx.cs" Inherits="Twitter.Amis" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
Liste des derniers abonnements actifs
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageTitle" runat="server">
Derniers abonnements actifs
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageContent" runat="server">

    <div class="latest">      
<p>
 <%
  if(Twitter.Connexion.isConnected())
  {    
  %>
    <asp:Button id="Button1" cssClass="btn" runat="server" Text="Tout Exporter" 
        onclick="saveAllClicked" />  <br />
    <asp:Label ID="saveResult" runat="server" />
<%

  } 
%>
</p>

<div class="post_body nicelist">
<ol>

     <% 
         IEnumerable<LinqToTwitter.User> lst = getFriendList();
         bool alt = true;
    if(lst != null)
        foreach (LinqToTwitter.User user in lst)
        {
            String altClass = alt ? "alt" : "";
            alt = !alt;
   %>
       <li class="<%=altClass %>">

						<div class="comment_gravatar left">
							<img alt="" src="<%=user.ProfileImageUrl %>" height="32" width="32" />
                            
						</div>
                        

						<div class="comment_author left">
                        <div class="date"></div>
							<span class="comment">@<a href="AmisTweets.aspx?userid=<%=user.Identifier.UserID %>"><%=user.Identifier.ScreenName %>&nbsp;&nbsp;</b><%=user.Name %></a></span>
						</div>
		              <div class="clearer">&nbsp;</div>
						
						<div class="body">									
						
						</div>
		</li>		
     
     <%} %>
</ol>
</div>
</div>

    <asp:Timer ID="Timer1" runat="server" ontick="refreshTweets">
    </asp:Timer>
</asp:Content>
